package com.sh.装饰器模式.one.impl;

import com.sh.装饰器模式.one.ServerHttpResponse;

public class LoggingServerHttpResponseDecorator extends ServerHttpResponseDecorator {

    public LoggingServerHttpResponseDecorator(ServerHttpResponse response) {
        super(response);
    }

    @Override
    public void write(String data) {
        System.out.println("Logging: " + data);
        super.write(data);
    }
}
